<?php
/**
 * True Gallery Category template file
 *
 * @version 2.5
 * @author Alexey N. Brin (userxp@joomlaportal.ru)
 * @homepage http://truegallery.ru 
 * @filename exif.tpl.php
 * @package True Gallery
 * @copyright (C) 2008-2009 by joomlatune.ru
 * @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html
 * 
 * THIS GALLERY is an EVOLUTION of AkoGallery -> PonyGallery -> DatsoGallery
 *
 * If you fork this to create your own project, 
 * please make a reference to True Gallery someplace in your code 
 * and provide a link to http://www.joomlatune.ru
 *
 **/

defined('_VALID_MOS') or defined('_JEXEC') or die('Direct Access to this location is not allowed.');

if( !isset($data) && isset($tpl) ) $data =& $tpl; // little fix for backward compatibility
//xdump( $data );
?>
<div class="picture_exif">
	<table>
		<tr><th><?php echo JText::_( 'TG_TITLE' ); ?></th><td><?php echo $data->name; ?></td></tr>
		<tr><th><?php echo JText::_( 'TG_DESCRIPTION' ); ?></th><td><?php echo $data->description; ?></td></tr>
		<tr><th><?php echo JText::_( 'TG_AUTHOR' ); ?></th><td><?php echo $data->author; ?></td></tr>
		<tr><th><?php echo JText::_( 'TG_HITS' ); ?></th><td><?php echo $data->hits; ?></td></tr>
		<tr><th><?php echo JText::_( 'TG_DATE_ADD' ); ?></th><td><?php echo $data->publishupdate; ?></td></tr>
		<tr><th><?php echo JText::_( 'TG_CATEGORY' ); ?></th><td><a href="<?php echo $data->catlink; ?>"><?php echo $data->category; ?></a></td></tr>
	<?php if( $data->exif ) { 
		$i = 0;
		foreach( $data->exif as $ex_key=>$ex_value ) { ?>
			<tr class="exifrow<?php echo $i; ?>">
				<th><?php echo JText::_( strtoupper( 'TG_'.$ex_key ) ); ?></th>
				<td><?php echo $ex_value; ?></td>
			</tr><?php
			$i = 1 - $i;
		}
	} ?>
	</table>
</div>